package com.cx330;

import java.lang.reflect.Field;

public class Example52_02 {
    public static void main(String[] args) throws Exception {
        String str = "cx330";
        Class<? extends String> clazz = str.getClass();
        Field valueField = clazz.getDeclaredField("value");
        valueField.setAccessible(true);
        byte[] value = (byte[]) valueField.get(str);
        value[0] = 'C';
        System.out.println(str);
    }
}
